﻿<!--
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:System.Windows.Controls.Samples.SyntaxHighlighting">

    <Style TargetType="local:SyntaxHighlightingTextBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:SyntaxHighlightingTextBox">
                    <RichTextBox 
                        x:Name="RichTextBox" 
                        IsReadOnly="True"
                        BorderThickness="0"
                        Margin="{TemplateBinding Padding}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>